import React, { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";

export function useAuth() {
  const user = useSelector((state) => state["userInfo"]);
  return user;
}
